import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const SYS: AppRouteRecordRaw = {
  path: '/sys',
  name: 'sys',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '系统管理',
    requiresAuth: true,
    icon: 'icon-settings',
    order: 1,
  },
  children: [
    {
      path: 'org',
      name: 'org',
      component: () => import('@/views/sys/org/org.vue'),
      meta: {
        locale: '组织架构',
        requiresAuth: false,
        roles: [permissionType.sysAdmin],
      },
    },
    {
      path: 'orguser',
      name: 'orguser',
      component: () => import('@/views/sys/org/orguser.vue'),
      meta: {
        locale: '组织用户',
        requiresAuth: false,
        roles: [permissionType.sysAdmin],
      },
    },
    {
      path: 'role',
      name: 'role',
      component: () => import('@/views/sys/role/role.vue'),
      meta: {
        locale: '角色管理',
        requiresAuth: false,
        roles: [permissionType.sysAdmin],
      },
    },
  ],
}

//export default SYS
